﻿using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEngine;

public class RectUITools {
    public static void TranslateUIPanel(RectTransform InPanle,RectTransform OutPanel,float InStartYPos,float InEndYPos,float duration)
    {
        InPanle.anchoredPosition = new Vector2(OutPanel.anchoredPosition.x,InStartYPos);
        InPanle.DOMoveY(InEndYPos, duration);
        OutPanel.DOMoveY(InStartYPos, duration);
    }
}
